package com.cy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Date;

/**
 * @author wxhn1
 */
@Controller
public class WelcomeController {
    // localhost:8080
    @RequestMapping("/")
    public String index(){
        return "login";
    }

    @RequestMapping("html")
    public String html(HttpServletRequest request){
        return (String) request.getAttribute("pageName");
    }
}
